home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 4 / BBS in a Box - Macintosh - Volume IV (January 1992) (BBS in a Box).iso / Files / Prog / M / LSC213.cpt / MacTypes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-09-26  |  1.1 KB  |  55 lines  |  [TEXT/KAHL]

  1.  
  2. /*
  3.  *  MacTypes.h
  4.  *
  5.  *  Copyright (c) 1986, 1987 THINK Technologies, Inc.
  6.  *  These interfaces are based on information copyrighted
  7.  *  by Apple Computer, Inc., 1985, 1986, 1987.
  8.  *
  9.  */
  10.  
  11. #ifndef    _MacTypes_
  12. #define _MacTypes_
  13.     
  14. #define    noErr    0
  15.  
  16. typedef    int    OsErr, OSErr;
  17. typedef long OsType, OSType;
  18. typedef char SignedByte ;
  19. typedef unsigned char Byte ;
  20. typedef char * Ptr ;
  21. typedef char ** Handle ;
  22. typedef int (*ProcPtr)() ;
  23. typedef long Fixed, Fract;
  24. typedef    long Size;
  25. typedef enum { false, true, FALSE = 0, TRUE } Boolean;
  26. typedef unsigned char Str255[256];
  27. typedef unsigned char * StringPtr,** StringHandle ;
  28. typedef    long ResType ;
  29.  
  30.  
  31. typedef struct 
  32.     {
  33.     int    v,h;
  34.     } Point ;
  35.     
  36. typedef struct
  37.     {
  38.     int    top,left,bottom,right ;
  39.     } Rect ;
  40. #define topLeft(r)    (((Point *) &(r))[0])
  41. #define botRight(r)    (((Point *) &(r))[1])
  42.  
  43.  
  44. /*  functions returning non-integral values  */
  45. pascal Handle NewHandle();
  46. pascal Ptr NewPtr();
  47. pascal Handle GetResource();
  48. pascal Handle GetIndResource();
  49. pascal Handle GetNamedResource();
  50.  
  51. /*  low-memory globals  */
  52. extern int ROM85 : 0x28E;
  53.  
  54.  
  55. #endif _MacTypes_